<?php
class Dog
{
	public $publictxt="i am public";
	protected $protectedtxt="i am protected";
	private $privatetxt="i am private";
}
$Dog= new Dog;
echo $Dog->publictxt;
//echo $Dog->protectedtxt;
//echo $Dog->privatetxt;
?>